#!/usr/bin/python

import common
from widgets import Table

common.setupEnv(globals())

usage = "Edit Stock"

parser = common.StockieOptionParser(usage=usage)
parser.add_posarg('stocksym', dest='symbol')
parser.add_option('--name', dest='name')
parser.add_option('--sector', dest='sector')
parser.add_option('--stoploss', dest='stoploss')
(options, args) = parser.parse_args()

interface.editStock(options.symbol, options.name, options.sector, options.stoploss)
